package com.buyouchina.service.product;


import java.util.Date;
import java.util.List;

import com.buyouchina.bean.product.OrderForm;
import com.buyouchina.bean.product.Outlets;
import com.buyouchina.bean.product.OrderForm.Type;
import com.buyouchina.service.base.DAO;


public interface OrderService extends DAO<OrderForm>{
	
	/**
	 * 		按店铺id查询订单记录总数
	 * 		@param oid 店铺id
	 * */
	public Integer getCountByOid(Outlets ot);

	/**
	 * 		按店铺id查询订单列表
	 * 		@param oid 店铺id
	 * */
	public List<OrderForm> findByOid(Integer oid,Integer firstResult,Integer maxResults);
	/**
	 * 		按订单状态查询订单列表
	 * 		@param status 订单状态
	 * */
	public List<OrderForm> findByStatus(String status);
	/**
	 * 		按订单时间查询订单列表
	 * 		
	 * */
	public List<OrderForm> findByDate(Date startTime,Date endTime);
	
	public List<OrderForm> list(Outlets ot,Type type,Integer firstResult,Integer maxResults);
	
	public List<OrderForm> list(List<Outlets> ots,Integer firstResult,Integer maxResults);
	
	public List<OrderForm> list(List<Outlets> ots);
	
	public List<OrderForm> findByOid(Integer oid);
	
	/**
	 * 	查询订单数
	 * 		
	 * */
	public Integer getCount(Integer pid,Integer lastPid);
}
